﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SzCourt.Logic.BLL;
using SzCourt.Logic.NBL.DBEntities;

namespace SzCourt.WebSite.lian
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                getInfo();
            }
        }

        /// <summary>
        /// 获取受理范围
        /// </summary>
        private void getInfo()
        {
            this.hdnT.Value = string.IsNullOrEmpty(Request.QueryString["t"]) ? "1" : Request.QueryString["t"];

            PreCase bll = new PreCase();
            CaseAccepRangeParam param = new CaseAccepRangeParam();
            switch (this.hdnT.Value)
            {
                case "1":
                    param.CaseType = CaseTypes.MinShi;
                    break;
                case "2":
                    param.CaseType = CaseTypes.ShangShi;
                    break;
                case "3":
                    param.CaseType = CaseTypes.ZhiXing;
                    break;
                default :
                     param.CaseType = CaseTypes.MinShi;
                    break;
            }
            pPreCaseAccepRange result = (pPreCaseAccepRange)bll.GetAccepRangeInfo(param);

            if (result!=null)
            {
                this.divInfo.InnerHtml = result.RangeContent;
            }
           
        }
    }
}